package com.bawei.model_sevent.Activity.MySecviex;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.core.widget.NestedScrollView;

import org.jetbrains.annotations.NotNull;

/**
 * 时间：2021/11/26 10:58.
 * 类名：MySeventent
 * 作用：Model_sevent
 * 作者:张羽_zy
 */
public class MySeventent extends NestedScrollView {
    private static final String TAG = "MyNestedScrollLayout";
    private ViewGroup contentView;
    private View topView;

    public MySeventent(@NonNull @NotNull Context context) {
        super(context);
    }

    public MySeventent(@NonNull @NotNull Context context, @Nullable @org.jetbrains.annotations.Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    public MySeventent(@NonNull @NotNull Context context, @Nullable @org.jetbrains.annotations.Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }


    @Override
    protected void onFinishInflate() {
        super.onFinishInflate();
        // 获取第一个孩子的第一个孩子
        topView = ((ViewGroup) getChildAt(0)).getChildAt(0);
        // 获取第一个孩子的第二个孩子
        contentView = (ViewGroup)((ViewGroup)getChildAt(0)).getChildAt(1);
    }
}
